package org.gpf.simpleFactory.operaiton;

public class OperationDiv extends Operation {

	@Override
	public double getResult() {
		double result = 0;
		if (super.getNumber2()==0) {
			throw new IllegalArgumentException("除数不能为0");
		}
		result = super.getNumber1() / super.getNumber2();
		return result;
	}

}
